import React from 'react'
import { connect } from 'react-redux'
import { Result, Button } from 'antd'

function Page({ history }: any) {
  return (
    <div className={`g_page`}>
      <Result
        status="404"
        title="404"
        subTitle="抱歉当前页面不存在！"
        extra={
          <Button
            type="primary"
            size="large"
            onClick={() => history.push('/home')}
          >
            返回首页
          </Button>
        }
      />
    </div>
  )
}

export default connect()(Page)
